package com.coocaa.ops.admin.v1.policygroup.biz.impl;


import com.coocaa.ops.admin.base.AbstractBizImpl;
import com.coocaa.ops.admin.v1.policygroup.biz.IPolicyGroupInfoBiz;
import com.coocaa.ops.admin.v1.policygroup.mapper.IPolicyGroupInfoHistoryMapper;
import com.coocaa.ops.admin.v1.policygroup.mapper.IPolicyGroupInfoMapper;
import com.coocaa.ops.common.core.base.mapper.IBaseHistoryMapper;
import com.coocaa.ops.common.core.biz.policygroup.entity.PolicyGroupInfoEntity;
import com.coocaa.ops.common.core.biz.policygroup.entity.PolicyGroupInfoHistoryEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author bjh
 * @description 策略组信息原始表-biz层接口实现
 * @date 2020-03-12 14:46:04
 */
@Service
public class PolicyGroupInfoBizImpl extends AbstractBizImpl<IPolicyGroupInfoMapper, PolicyGroupInfoEntity> implements IPolicyGroupInfoBiz {
    @Autowired
    private IPolicyGroupInfoHistoryMapper thisHistoryMapper;

    @Override
    public IBaseHistoryMapper getHistoryMapper() {
        return thisHistoryMapper;
    }

    @Override
    public IPolicyGroupInfoMapper getMapper() {
        return (IPolicyGroupInfoMapper) super.getMapper();
    }

    @Override
    public PolicyGroupInfoEntity createOriginEntityNewInstance() {
        return new PolicyGroupInfoEntity();
    }

    @Override
    public PolicyGroupInfoHistoryEntity createHistoryEntityNewInstance() {
        PolicyGroupInfoHistoryEntity historyEntity = new PolicyGroupInfoHistoryEntity();
        return historyEntity;
    }
}
